/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.chl.da.pagebeans;

import edu.chl.da.ejb.core.Destination;
import edu.chl.da.ejb.ctrl.IManageDestination;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Erik
 */
@ManagedBean(name = "ManageDestinationModel")
@RequestScoped
public class ManageDestinationModel {

    @EJB
    IManageDestination imd;

    /** Creates a new instance of ManageDestinationModel */
    public ManageDestinationModel() {

    }

    public List<Destination> getAllDestinations(){
        return imd.getAllDestinations();
    }

}
